package com.genius.workflow.error.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/error")
public class ErrorController {
	
	
	@GetMapping("/toNoPower")
	public String toNoPower(){
		return "/views/error/nopower";
	}
	@GetMapping("/toError")
	public String toError(){
		return "/views/error/Error";
	}
	@GetMapping("/to404")
	public String to404(){
		return "/views/error/404";
	}
	@PostMapping("/to404")
	public String toPost404(){
		return "/views/error/404";
	}
	@GetMapping("/to500")
	public String to500(){
		return "/views/error/500";
	}
	@PostMapping("/to500")
	public String toPost500(){
		return "/views/error/500";
	}
}
